package com.atmilan.quartz.service;

import com.atmilan.quartz.model.entity.crmeb.StoreProductAttrValue;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.function.Function;

/**
* @author Mr.Zhang edit by stivepeim 7-6
* @description StoreProductAttrValueService 接口
* @date 2020-05-27
*/
public interface IStoreProductAttrValueService extends IService<StoreProductAttrValue> {

    /**
     * 清空指定表
     * @Description:  
     * @author daigb 
     * @param 
     * @return void
     * @throws
     */
    void deleteAll();

    /**
     * 根据商品删除attrValue
     * @param productId
     * @return
     */
    boolean removeByProductId(Integer productId);

    /**
     * 功能描述: 根据wrappers字段更新value值
     * @Param: [entityList, queryWrapperFunction]
     * @Return: boolean
     * @Author: wangzh
     * @Date: 2023/5/11 11:07
     */
    boolean updateBatchByQueryWrapper(Collection<StoreProductAttrValue> entityList, Function<StoreProductAttrValue, LambdaQueryWrapper> queryWrapperFunction);

}
